package com.syzg.base.merge.model;

import java.io.Serializable;

public class RoleOperationId implements Serializable{

	private static final long serialVersionUID = 1L;
	private String operationId;
    private String roleId;
	public RoleOperationId(){
    }

    public RoleOperationId(String operationId, String roleId){
        this.operationId = operationId;
        this.roleId = roleId;
    }

    public String getOperationId(){
        return operationId;
    }

    public void setOperationId(String operationId){
        this.operationId = operationId;
    }

    public String getRoleId(){
        return roleId;
    }

    public void setRoleId(String roleId){
        this.roleId = roleId;
    }

    public boolean equals(Object other){
        if(this == other)
            return true;
        if(other == null)
            return false;
        if(!(other instanceof RoleOperationId))
            return false;
        RoleOperationId castOther = (RoleOperationId)other;
        return (getOperationId() == castOther.getOperationId() || getOperationId() != null && castOther.getOperationId() != null && getOperationId().equals(castOther.getOperationId())) && (getRoleId() == castOther.getRoleId() || getRoleId() != null && castOther.getRoleId() != null && getRoleId().equals(castOther.getRoleId()));
    }

    public int hashCode(){
        int result = 17;
        result = 37 * result + (getOperationId() != null ? getOperationId().hashCode() : 0);
        result = 37 * result + (getRoleId() != null ? getRoleId().hashCode() : 0);
        return result;
    }
}